## TremCS Config


# Change this to your name in the game if it isn't automatically detected.
# Example: name = "UnnamedPlayer^7"
name = ""
# Change rendered_name to your name if it doesn't show up correctly. This is only used for noncoloured names.
# Example: rendered_name ="UnnamedPlayer"
rendered_name = ""
## Main Options
# Location of the Tremulous base folder
trem_dir = "/home/user/.tremulous/base/"
# Specify a theme folder
theme = "DefaultTheme"
# Path to Image Magick convert program (used for animated gifs) - If in PATH, you can use the shorthand.
convert_path = "convert"
# Path to Quake Stat program (used for getting players) - If in PATH, you can use the shorthand.
quakestat_path = "/usr/bin/quakestat"

# URL to the tremcs directory on the webserver (if you use the webpage feature)
website_url = "http://example.com/tremcs"
#If you want coloured names, set this to True, for non coloured names, set to False
coloured_name = True

## FTP Settings
# If you just want to move the file to a local directory, uncomment local_upload
# and set ftpdir to your directory.
ftpserver = "example.com"
ftpuser = "weeeeeeeeee"
ftppass = "woop"
ftpdir = "httpdocs/tremcs/"
local_upload = False


#### End of compulsory configuration ####

# Image locations relative to ftpdir
ftpbanner = "banner.png"
ftpavatar = "avatar.png"
ftpuserbar_anim = "userbar.gif" # Used for animated userbars
ftpuserbar_image = "userbar.png" # Used for static userbars

# graph locations relative to ftpdir
ftpgraph_all = "graph_all.png"
ftpgraph_allkills = "graph_allkills.png"
ftpgraph_alldeaths = "graph_alldeaths.png"
ftpgraph_kills = "graph_kills.png"
ftpgraph_deaths = "graph_deaths.png"
ftpgraph_ratio = "graph_ratio.png"
ftpgraph_live = "graph_live.png"
ftpgraph_allratio = "graph_allratio.png"
ftpgraph_piekills = "graph_piekills.png"
ftpgraph_piedeaths = "graph_piedeaths.png"

# HTML page location relative to ftpdir
ftphtmlpage = "index.html"

# Colour Codes - You may add more codes if you need to.
colours = {"0":'black',"1":'red',"2":'#00ff00',"3":'yellow',"4":'#4444FF',"5":'cyan',"6":'pink','7':'white','8':'black','9':'red'}

# Max and Min length for [quote_short]
max_length_short = 30
min_length_short = 0

# Max and Min length for [quote]
max_length = 300
min_length = 10

## ALL PATHS ARE RELATIVE TO THE tremcs_dir VARIABLE UNLESS SPECIFIED

## Team Stats
# Call these files whatever you like. They will be created in the tremulous base directory
# as specified in the trem_dir variable
# You can then bind a key to execute each file using "/bind [key] exec teamstats.cfg" 
# in the tremulous console accessible by pressing ~
currentteamfile = "/teamstats.cfg"
opponentteamfile = "/enemystats.cfg"
currentteamfilesay = "/teamstats-say.cfg"
opponentteamfilesay = "/enemystats-say.cfg"

# These are for your stats
allteamsfile = "/stats.cfg"
yourstatsfile = "/yourstats.cfg"

# These are for single player stats
playerstatsfile = "/playerstats.cfg"
playerstatsfilesay = "/playerstats-say.cfg"

## File paths
# In windows, the dump file is output in the tremulous directory as stderr.log
import sys
if sys.platform == "win32":
    dumpfilename = "C:/Program Files/Tremulous/stderr.log"
else:
    dumpfilename = "/stats/dump"
statsfilename = "/stats/stats"
quickstatsfilename = "/stats/quickstats"
graphdatafilename = "/stats/graph"
livedatafilename = "/stats/live"
lockfile = "/stats/lockfile"


## Image settings
avatar_save = "/Graphs/avatar.png"
banner_save = "/Graphs/banner.png"
userbar_image_save = "/Graphs/userbar.png"
userbar_anim_save = "/Graphs/userbar.gif"

# Use keywords to specify actual values. Use --userbar=help for keywords.
# If there is more than one item in stats_list, an animated image will be generated.
# If you want your name to be shown on a frame, put a [name] in the string and it 
# will be rendered in the coordinates specified in the theme file.
stats_list = ["[alltimekills] Kills[name]", "[alltimedeaths] Deaths[name]", "Ratio: [alltimeratio][name]", "Favourite Weapon: [favweapon]",'[_name]: "[quote_short]"'] # List specifies frame order as well.
userbar_anim_delay = "200" # If animated; in centiseconds (100 cs = 1 s)

# Temporary images folder
image_folder = "/Images/"


## Html Page Template
htmlpage_template = "/HTML/template.html"
htmlpage_output = "/HTML/index.html"


## Graph Settings
graph_all = "/Graphs/graph_all.png"
graph_allkills = "/Graphs/graph_allkills.png"
graph_alldeaths = "/Graphs/graph_alldeaths.png"
graph_kills = "/Graphs/graph_kills.png"
graph_deaths = "/Graphs/graph_deaths.png"
graph_ratio = "/Graphs/graph_ratio.png"
graph_allratio = "/Graphs/graph_allratio.png"
graph_piekills = "/Graphs/graph_piekills.png"
graph_piedeaths = "/Graphs/graph_piedeaths.png"

# Location of the live graph generated with -G
graph_live = "/Graphs/graph_live.png"

